package wyu.service.feign;

import com.entity.Category;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("category-provider")
public interface CategoryFeign {
    @GetMapping("/category/getbyid")
    Category getById(@RequestParam("id")int id);
}
